package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import org.aspectj.weaver.patterns.TypePatternQuestions;

import java.util.Date;
import java.util.List;

/**
 * 解答类
 *
 */
@Getter
@Setter
@JsonIgnoreProperties("handler")
public class Answer extends BaseDomain {
    private String answerContent;//回答内容

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date answerTime; //回答时间

    private User author; // 作者

    private Long questionId; //问题id

    private Long  userId;//答者id

    private List<CommunityComment> comments;//评论

}